﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneStationFile.Model
{
    public class Role
    {
        public Role() {
            Nodes = new HashSet<Node>();
            Users = new HashSet<Users>();
        }
        public virtual int Id { get; set; }
        [Display(Name = "名称")]
        public virtual string Name { get; set; }
        [Display(Name = "节点")]
        public virtual ISet<Node> Nodes { get; set; }
        [Display(Name = "用户")]
        public virtual ISet<Users> Users { get; set; }
        [Display(Name = "描述")]
        public virtual string Describe { get; set; }


    }
    
}
